package com.huawei.crm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("role")
public class Role extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private String sn;

    // 多对多关系
    private List<Permission> permissions;
}